#include <stdio.h>
#include <string.h>
int main() 
{
    char arr[10000] = {0};
    gets(arr);
    int len = strlen(arr); 
    int right = len - 1;
    int left = 0;
    int tmp = 0;

    while(left <= right)
    {
        tmp = arr[left];
        arr[left] = arr[right];
        arr[right] = tmp;
        left++;
        right--;
    }

    printf("%s", arr);
    return 0;
}

